package cn.yitun.chat.yitunservercommonlib.converter.po2vo.group;

import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupInviteApplyInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupInviteApplyVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群组分类
 */
@Mapper(componentModel = "spring")
public interface GroupInviteApplyPo2VoConverter {
    GroupInviteApplyPo2VoConverter INSTANCE = Mappers.getMapper(GroupInviteApplyPo2VoConverter.class);

    GroupInviteApplyInfo vo2po(GroupInviteApplyVo vo);

    List<GroupInviteApplyInfo> vo2po(List<GroupInviteApplyVo> voList);

    @InheritInverseConfiguration
    GroupInviteApplyVo po2vo(GroupInviteApplyInfo info);
    @InheritInverseConfiguration
    List<GroupInviteApplyVo> po2vo(List<GroupInviteApplyInfo> infoList);
}
